@using ZR.CodeGenerator
@using ZR.Model.System.Generate
@using ZR.Model.System.Model.Enums;
@using Infrastructure.Extensions;
@* @model ZR.CodeGenerator.Model.GenerateDto; *@
@{
    var genOptions = Model.GenOptions;
    var genTable = Model.GenTable;
    var genTableOptions=genTable.Options;
    var subTableOptions = Model.SubTableOptions;
    
    var replaceDto = Model.ReplaceDto;

}
using @(genOptions.ModelsNamespace).Enums;
@if (null != genTable.SubTableName && "" != genTable.SubTableName)
{
@:using @(subTableOptions.ModelsNamespace).@(subTableOptions.SubNamespace);
}

namespace @(genOptions.DtosNamespace).@(genOptions.SubNamespace).Dto
{
    /// <summary>
    /// @(genTable.FunctionName)表单对象
    /// </summary>
    public class @(genTable.FunctionCode)FormDto:@(genTable.FunctionCode)FormDtoBase
    {      

    }

@if (replaceDto.ShowBtnDelete || replaceDto.ShowBtnMultiDel)
{
    @:/// <summary>
    @:/// 删除@(genTable.FunctionName)请求对象
    @:/// </summary>
    @:public class Delete@(genTable.FunctionCode)Req:Delete@(genTable.FunctionCode)ReqBase
    @:{

    @:}
}

@if (genTableOptions.IsEnableStateChange)
{
    @:/// <summary>
    @:/// 变更@(genTable.FunctionName)状态请求对象
    @:/// </summary>
    @:public class Change@(genTable.FunctionCode)StateReq:Change@(genTable.FunctionCode)StateReqBase
    @:{
        
    @:}
}

@if(genTableOptions.IsTreeTable)
{
    @:/// <summary>
    @:/// 获取@(genTable.FunctionName)树选择列表请求对象
    @:/// </summary>
    @:public class Get@(genTable.FunctionCode)TreeSelectListReq:Get@(genTable.FunctionCode)TreeSelectListReqBase
    @:{

    @:}
}

    /// <summary>
    /// 获取@(genTable.FunctionName)分页列表请求对象
    /// </summary>
    public class Get@(genTable.FunctionCode)PageListReq : Get@(genTable.FunctionCode)PageListReqBase 
    {
        
    }

    /// <summary>
    /// @(genTable.FunctionName)列表项
    /// </summary>
    public class @(genTable.FunctionCode)ListItemDto:@(genTable.FunctionCode)ListItemDtoBase
    {

    }

    /// <summary>
    /// @(genTable.FunctionName)详情
    /// </summary>
    public class @(genTable.FunctionCode)DetailDto: @(genTable.FunctionCode)DetailDtoBase
    {

    }
}